﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;

namespace BidPreparation.model
{
    internal class BidsectionSupplierService
    {
        public DataTable getList()
        {
            DataTable dt = new DataTable();

            var connectionHelper = MysqlConnectionHelper.Instance;
            var conn = connectionHelper.Conn;
            if (conn != null)
            {
                try
                {
                    string sqlStr = "SELECT t.uuid uuid,sp_bulletin_project_id tbId FROM tb_bid_section_supplier t WHERE t.id>=105738 ORDER BY t.id DESC";

                    MySqlDataAdapter da = new MySqlDataAdapter(sqlStr,conn);
                    da.Fill(dt);

                    return dt;
                }
                catch {

                }
            }

            return null;
        }
    }
}
